package wyh.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * -- 创建 users 账号表，并添加权限属性
 * CREATE TABLE users
 * (
 *     user_id         INT AUTO_INCREMENT PRIMARY KEY,
 *     username        VARCHAR(50)                          NOT NULL UNIQUE,
 *     password        VARCHAR(255)                         NOT NULL,
 *     patient_id      INT,
 *     escort_id       INT,
 *     user_permission ENUM ('root', 'escort', 'customer') NOT NULL DEFAULT 'customer'
 * );
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer user_id;
    private String username;
    private String password;
    private Integer patient_id;
    private Integer escort_id;
    private String user_permission;
}